package com.jxtc.enterprise.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Schema(description = "管理平台新增租户时需要传递的数据")
@Getter
@Setter
@ToString
public class TenantCreateDTO {
    @NotBlank(message = "租户名称不能为空")
    @Schema(description = "租户名称", example = "张三")
    private String name;

    @NotBlank(message = "租户手机号不能为空")
    @Size(message = "手机号必须为 11 位", min = 11, max = 11)
    @Schema(description = "租户手机号", example = "12345678901")
    private String phone;

    @NotBlank(message = "租户登录密码不能为空")
    @Schema(description = "租户登录密码", example = "123456")
    private String password;

    @Schema(description = "租户联系地址（选填）", example = "xx 区 xx 栋")
    private String address;

    @Schema(description = "租户联系地址（选填）", example = "xx 区 xx 栋")
    private String note;
}
